package cn.yuanqiao.manage.service;

import cn.yuanqiao.manage.domain.YqdaApplyModel;
import com.alibaba.fastjson2.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * applymodelService接口
 *
 * @author 赵常飞
 * @date 2023-06-16
 */
public interface IYqdaApplyModelService
{
    /**
     * 查询applymodel
     *
     * @param menuId 菜单id
     * @param categoryId 门类id
     * @return applymodel
     */
    public YqdaApplyModel selectYqdaApplyModelById(Long menuId,Long categoryId);

    /**
     * 查询applymodel列表
     *
     * @param yqdaApplyModel applymodel
     * @return applymodel集合
     */
    public List<YqdaApplyModel> selectYqdaApplyModelList(YqdaApplyModel yqdaApplyModel);

    /**
     * 新增applymodel
     *
     * @param yqdaApplyModel applymodel
     * @return 结果
     */
    public int insertYqdaApplyModel(YqdaApplyModel yqdaApplyModel);

    /**
     * 修改applymodel
     *
     * @param yqdaApplyModel applymodel
     * @return 结果
     */
    public int updateYqdaApplyModel(YqdaApplyModel yqdaApplyModel);

    /**
     * 批量删除applymodel
     *
     * @param categoryId 门类id
     * @param menuId 菜单id
     * @return 结果
     */
    public int deleteYqdaApplyModel(Long categoryId,Long menuId);

    /**
     * 删除applymodel信息
     *
     * @param Id applymodel主键
     * @return 结果
     */
    public int deleteYqdaApplyModelById(Long Id);

    int clonefield(JSONObject json);

    List<Map<String,String>> selectYqdaApplyModelListmenu(String menuName,Long categoryId);

    String getfieldlist(Long menuId,Long categoryId,String field);

    List<Map<String,String>> getmenulist(JSONObject json);

    int addmultiplemenu(JSONObject json);

    List<Map<String,String>> getmenu(Long categoryId);

    List<Map<String,String>> getmdatalist(JSONObject json);

    int deletebycatemenu(com.alibaba.fastjson.JSONObject json);
}
